<div class="col-sm-12">
  <div class="box">
    <div class="box-body">
    <div id="datatable1_wrapper" class="dataTables_wrapper form-inline" role="grid">
    	<div class="row">
        <!--搜索-->
        <div class="col-sm-9 ">
            <span class="date-range pull-left">
              <div class="btn-group">
                <a class="js_update btn btn-default" href="#" {{action "search" "today" on="click"}}>今天</a>
                <a class="js_update btn btn-default" href="#" {{action "search" "seven" on="click"}}>最近7天</a>
                <a class="js_update btn btn-default" href="#" {{action "search" "thirty" on="click"}}>最近一个月</a>

                <a id="reportrange" class="btn reportrange" {{action "showDate" on="click"}}>
                  <i class="fa fa-calendar"></i>
                  <span>自定义日期</span>
                  <i class="fa fa-angle-down"></i>
                </a>
              </div>
             {{#if dateShow}}
              <!-- 日期选择弹窗 -->
              <div class="date-box form-input-group">
                  <div class="row">
                    <div class="col-xs-4 col-sm-4 org-title">开始时间：</div>
                    <!-- <div class="col-xs-8 col-sm-8">{{input class="input-group-content" type="date" value=beginDate}}</div> -->
                      <div class="col-xs-8 col-sm-8">
                    {{ui/addon/bs-datetimepicker date=null placeholder="开始时间"
											locale="zh-CN" iconClasses="fa fa-calendar"
											 show="dpShowAction"  change="changeBeginDateAction"}}
                      </div>
                  </div>
                  <div class="row">
                    <div class="col-xs-4 col-sm-4 org-title">结束时间：</div>
                    <div class="col-xs-8 col-sm-8">
                  {{ui/addon/bs-datetimepicker date=null placeholder="结束时间"
                    locale="zh-CN" iconClasses="fa fa-calendar"
                     show="dpShowAction"  change="changeEndDateAction"}}
                    </div>
                  </div>
                  <div class="btn-row text-center">
                    <button class="btn btn-primary"  {{action "hideDate"  on="click"}}><i class="fa fa-check icon-white"></i>&ensp;确定</button>
                    <button class="btn btn-light-grey"  {{action "hideDate" on="click"}}><i class="fa fa-times"></i>&ensp;取消</button>
                  </div>
              </div>
              <!-- End 日期选择弹窗 -->
              {{else}}
              {{/if}}
            </span>
          </div>
          <div class="user-add-btn col-sm-3 pull-right nopadding-right">
            {{#ui/mix-button class=" user-btn pull-right" iconClass="fa-plus"  text='添加咨询信息'  clickAction="toDetailPage" toDetailPage="toDetailPage" style="padding-right:0px;margin-right:0px;"}}
            {{/ui/mix-button}}
      	  </div>

    	  <!--搜索-->
    	</div>
      <table id="datatable1" cellpadding="0" cellspacing="0" border="0"  class="datatable table table-bordered table-hover dataTable mt15" aria-describedby="datatable1_info">
        <thead>
          <tr role="row">
            <th rowspan="1" colspan="1" width="">咨询人姓名</th>
            <th rowspan="1" colspan="1" width="">联系电话</th>
            <th rowspan="1" colspan="1" width="">老人姓名</th>
            <th rowspan="1" colspan="1" width="">预约参观日期</th>
            <th rowspan="1" colspan="1" class="" width="">咨询日期</th>
        		<th rowspan="1" colspan="1" class="" width="">操作</th>
          </tr>
        </thead>
      <tbody role="alert" aria-live="polite" aria-relevant="all" class="">
          {{#each consultList as |consult|}}
          <tr class="gradeA odd">
            <td class=" ellipsis sorting_1" {{action "toDetailPage" consult on="click"}}>{{consult.advName}}</td>
            <td class=" ellipsis " {{action "toDetailPage" consult on="click"}}>{{consult.advTel}}</td>
            <td class=" ellipsis" {{action "toDetailPage" consult on="click"}}>{{consult.customerName}}</td>
            <td class=" ellipsis " {{action "toDetailPage" consult on="click"}}>{{consult.appointmentDateString}}</td>
            <td class="ellipsis" {{action "toDetailPage" consult on="click"}}>{{consult.advDateString}}</td>
            <!-- <td ><a {{action "jumpAdvance" consult on="click"}}>咨询转预定</a>&nbsp;&nbsp;&nbsp;&nbsp;<a {{action "jumpVist" consult on="click"}}>回访记录维护</a></td> -->
            {{#if consult.computedStatus}}
            <td >已预订&nbsp;&nbsp;&nbsp;&nbsp;<a {{action "jumpVist" consult on="click"}}>回访记录维护</a></td>
            {{else}}
            <td ><a {{action "jumpAdvance" consult on="click"}}>咨询转预定</a>&nbsp;&nbsp;&nbsp;&nbsp;<a {{action "jumpVist" consult on="click"}}>回访记录维护</a></td>
            {{/if}}
      	  </tr>
          {{/each}}
       </tbody>
        </table>
        {{#if consultList }}
            {{page-numbers content=consultList showFL=true numPagesToShow=5}}
            {{else}}
                <h1 class="col-sm-12 center unTask"></h1>
        {{/if}}
      </div>
    </div>
  </div>
  <!-- /BOX -->
</div>
